package con.shopping.entity;

/**
 * 折扣
 * @author ：河神
 * @date ：Created in 2022/2/14 8:09 下午
 */
public class Discount extends Active{

    private double discount;

    public Discount(ActiveTime activeTime, double discount) {
        super(activeTime);
        this.discount = discount;
    }

    public double discountAmount(double price){
        return price*discount;
    }

}
